package com.my.screenadapter.sql;

import org.litepal.crud.DataSupport;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 张英杰 on 2017/4/7.
 */

public class News extends DataSupport {
    private int id;
    private String newsid;
    private Introduction introduction;

    private List<Comment> commentList = new ArrayList<Comment>();
    private List<Category> categoryList = new ArrayList<Category>();

    public List<Category> getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(List<Category> categoryList) {
        this.categoryList = categoryList;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    public String getNewsid() {
        return newsid;
    }

    public void setNewsid(String newsid) {
        this.newsid = newsid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Introduction getIntroduction() {
        return introduction;
    }

    public void setIntroduction(Introduction introduction) {
        this.introduction = introduction;
    }

    @Override
    public String toString() {
        return "News{" +
                "categoryList=" + categoryList +
                ", id=" + id +
                ", newsid='" + newsid + '\'' +
                ", introduction=" + introduction +
                ", commentList=" + commentList +
                '}';
    }
}
